﻿using System;
using System.Data;
using System.Web.UI;
using System.Web.UI.WebControls;
using Resources;


public partial class equipmentWarrantyAlert : Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!new Utility().TestPermissions(Resource.PermissionViewWarrantyAllert))
        {
            lblMessageValidate.Text = Resource.Permission;
            PanelShow.Visible = false;
            return;
        }
    }
    protected void grdEquipment_RowDataBound1(object sender, GridViewRowEventArgs e)
    {
      
    }
    protected void grdEquipment_SelectedIndexChanged(object sender, EventArgs e)
    {

    }
    protected void grdEquipment_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
    {

    }
    protected void grdEquipment_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {

    }
    protected void btnSearch_Click(object sender, EventArgs e)
    {
        
    }
    protected void odsEquipAlert_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
    {

    }
    protected void odsEquipAlert_Selected(object sender, ObjectDataSourceStatusEventArgs e)
    {
        lblTotalEquipment.Text = "Total Equipments  : " + (e.ReturnValue != null ? ((DataTable)e.ReturnValue).Rows.Count.ToString() : 0.ToString());
        grdTemporary.Visible = ((DataTable)e.ReturnValue) == null ? true : ((DataTable)e.ReturnValue).Rows.Count  == 0 ? true : false ;
    }
    protected void grdToDisplay_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        new Utility().SetSelectedColorToGridView(e, grdToDisplay);
    }
    protected void txtPurchaseDate_TextChanged(object sender, EventArgs e)
    {
       
    }
}
